import { Module } from '@nestjs/common';
// import { AppController } from './app.controller';
// import { AppService } from './app.service';
import { UploadFileModule } from './upload-file/upload-file.module';
import { AuthModule } from './auth/auth.module';
import { JwtModule } from '@nestjs/jwt';
import { PrismaModule } from './prisma/prisma.module';
import { CryptoModule } from './crypto/crypto.module';
import { ArticleModule } from './article/article.module';
import { UserModule } from './user/user.module';
import { TypeManageModule } from './type-manage/type-manage.module';
import { TagManageModule } from './tag-manage/tag-manage.module';
import { NoticeModule } from './notice/notice.module';

@Module({
  imports: [
    UploadFileModule,
    AuthModule,
    JwtModule.register({
      global: true,
      secret: 'kylin',
      signOptions: { expiresIn: '7d' },
    }),
    PrismaModule,
    CryptoModule,
    ArticleModule,
    UserModule,
    TypeManageModule,
    TagManageModule,
    NoticeModule,
  ],
  // controllers: [AppController],
  // providers: [AppService],
})
export class AppModule {}
